package org.ejc.persist.model;

import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class Registrant implements Serializable {

    /** identifier field */
    private Integer registrantId;

    /** nullable persistent field */
    private String firstName;

    /** nullable persistent field */
    private String lastName;

    /** nullable persistent field */
    private String email;

    /** nullable persistent field */
    private String notes;

    /** nullable persistent field */
    private org.ejc.persist.model.ConventionRegistrant conventionRegistrant;

    /** persistent field */
    private org.ejc.persist.model.Address address;
    
    private String ageBracket;
    
    
    public String getAgeBracket(){
    	return ageBracket;
    }
    public void setAgeBracket(String _ageBracket){
    	ageBracket=_ageBracket;
    }
    

    /** persistent field */
    private Set transactions;
    
    /** nullable persistent field */
    private String contactNumber;

    /** full constructor */
    public Registrant(Integer registrantId, String firstName, String lastName, String email, String notes, org.ejc.persist.model.ConventionRegistrant conventionRegistrant, org.ejc.persist.model.Address address, Set transactions) {
        this.registrantId = registrantId;
        this.firstName = firstName;
        this.lastName = lastName;
        this.email = email;
        this.notes = notes;
        this.conventionRegistrant = conventionRegistrant;
        this.address = address;
        this.transactions = transactions;
    }

    /** default constructor */
    public Registrant() {
    }

    /** minimal constructor */
    public Registrant(Integer registrantId, org.ejc.persist.model.Address address, Set transactions) {
        this.registrantId = registrantId;
        this.address = address;
        this.transactions = transactions;
    }

    public Integer getRegistrantId() {
        return this.registrantId;
    }

    public void setRegistrantId(Integer registrantId) {
        this.registrantId = registrantId;
    }

    public String getFirstName() {
        return this.firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return this.lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getNotes() {
        return this.notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public org.ejc.persist.model.ConventionRegistrant getConventionRegistrant() {
        return this.conventionRegistrant;
    }

    public void setConventionRegistrant(org.ejc.persist.model.ConventionRegistrant conventionRegistrant) {
        this.conventionRegistrant = conventionRegistrant;
    }

    public org.ejc.persist.model.Address getAddress() {
        return this.address;
    }

    public void setAddress(org.ejc.persist.model.Address address) {
        this.address = address;
    }

    public Set getTransactions() {
        return this.transactions;
    }

    public void setTransactions(Set transactions) {
        this.transactions = transactions;
    }
    
    public String getContactNumber() {
        return this.contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("registrantId", getRegistrantId())
            .toString();
    }

}
